Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

297
Vistas
"Transaction failed" When deploying contract with ob rinkeby

I made a project relating to a youtube video and got this issue

When I try to deploy contract ob rinkeby it gives me this error "Error: transaction failed [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ]". I have checked everything many times and it still doesn't work

Part of Javascript file, where is the issue (it stops after "testing 1"

const RandomSVGContract = await ethers.getContractFactory('RandomSVG')
const randomSVG = new ethers.Contract(RandomSVG.address, RandomSVGContract.interface, signer)
let creation_tx = await randomSVG.create({ gasLimit: 7000000, gasPrice: 20000000000, value: '1000000000000000000' })
log(`testing 1`)
let receipt = await creation_tx.wait(1)
log(`testing 2`)
let tokenId = receipt.events[3].topics[2]
log(`testing 3`)
log(`You have made your NFT! This is token number ${tokenId.toString()}`)
log(`Lets wait for the ChainLink node to respond...`)

Solidity function that I try to call

function create() public payable returns (bytes32 requestId) {
    require(msg.value >= price, "need to send more eth");
    requestId = requestRandomness(keyHash, fee);
    requestIdToSender[requestId] = msg.sender;
    uint256 tokenId = tokenCounter; 
    requestIdToTokenId[requestId] = tokenId;
    tokenCounter = tokenCounter + 1;
    emit requestedRandomSVG(requestId, tokenId);
}

It's interesting, but it is easily deploying on localnet, but doesn't deploy ob rinkeby

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda